xsm/flask: Add missing unlock on error path
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Sun, 18 Dec 2011 14:32:06 +0000 (14:32 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Sun, 18 Dec 2011 14:32:06 +0000 (14:32 +0000)
Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
xen/xsm/flask/ss/services.c

index c810e9b38772ce9820c4a6da07a7dd79e91ecf57..7b08e73c4228974be8278352eccffae190773592 100644 (file)
@@ -1428,6 +1428,7 @@ int security_load_policy(void *data, size_t len)
         }
         if ( validate_classes(&policydb) )
         {
+            LOAD_UNLOCK;
             printk(KERN_ERR
                    "Flask:  the definition of a class is incorrect\n");
             sidtab_destroy(&sidtab);